package xyz.scootaloo.mono.data.db

import org.junit.Test
import org.junit.runner.RunWith
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.junit4.SpringRunner
import xyz.scootaloo.mono.data.DataModuleBootStrap
import xyz.scootaloo.mono.data.entity.auth.AuthLog
import xyz.scootaloo.mono.data.entity.auth.AuthLogs
import java.time.LocalDateTime

/**
 * @author flutterdash@qq.com
 * @since 2021/9/4 11:00
 */
@RunWith(SpringRunner::class)
@SpringBootTest(classes = [DataModuleBootStrap::class])
class InsertLogTest {

    @Test
    fun logTest() {
        AuthLogs.insert(AuthLog {
            success = false
            ip = "asaa"
            name = "用户"
            type = "增加"
            uid = 12
            desc = "username:username"
            date = LocalDateTime.now()
        })
    }

}
